home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Now 11 / CD-ROM Now MegaDisc 11 (1995-02).iso / discs / toolkit / install.txt < prev    next >
Encoding:
Text File  |  1994-11-02  |  57.8 KB  |  1,404 lines

  1. Newsgroups: comp.os.linux.announce,comp.os.linux.help,comp.os.linux.admin,news.answers,comp.answers
  2. Path: bloom-beacon.mit.edu!grapevine.lcs.mit.edu!uhog.mit.edu!MathWorks.Com!news.duke.edu!news-feed-1.peachnet.edu!gatech!udel!rochester!cornell!mdw
  3. From: mdw@sunsite.unc.edu (Matt Welsh)
  4. Subject: Linux Installation HOWTO
  5. Message-ID: <Installation-HOWTO.1-2296.773200404@cs.cornell.edu>
  6. Followup-To: poster
  7. Summary: How to obtain and install the Linux software
  8. Keywords: Linux, HOWTO, FAQ, installation
  9. Sender: mdw@cs.cornell.edu (Matt Welsh)
  10. Organization: Linux. It's not just for breakfast anymore.
  11. Date: Sun, 3 Jul 1994 01:53:45 GMT
  12. Approved: linux-announce@tc.cornell.edu (Matt Welsh)
  13. Lines: 1388
  14. Xref: bloom-beacon.mit.edu comp.os.linux.announce:2445 comp.os.linux.help:43751 comp.os.linux.admin:10515 news.answers:21894 comp.answers:6112
  15.  
  16. Archive-name: linux/howto/installation
  17. Last-modified: 30 Jun 94
  18.  
  19.   The Linux Installation HOWTO
  20.   by Matt Welsh, mdw@sunsite.unc.edu
  21.   v3.0, 30 June 1994
  22.  
  23.   This document describes how to obtain and install the Linux software,
  24.   focusing on the popular Slackware distribution (version 2.0). It is
  25.   the first document which a new Linux user should read to get started.
  26.  
  27.   1.  Introduction
  28.  
  29.   Linux is a freely-distributable implementation of UNIX for 80386 and
  30.   80486 machines. It supports a wide range of software, including X
  31.   Windows, Emacs, TCP/IP networking (including SLIP), the works.  This
  32.   document assumes that you have heard of and know about Linux, and just
  33.   want to sit down and install it.
  34.  
  35.  
  36.  
  37.   1.1.  Other sources of information
  38.  
  39.   If you have never heard of Linux before, there are several sources of
  40.   basic information about the system. One is the Linux Frequently Asked
  41.   Questions list (FAQ), available from
  42.   sunsite.unc.edu:/pub/Linux/docs/FAQ. This document contains many
  43.   common questions (and answers!) about Linux---it is a ``must read''
  44.   for new users.
  45.  
  46.   In the directory /pub/Linux/docs on sunsite.unc.edu you'll find a
  47.   number of other documents about Linux, including the Linux INFO-SHEET
  48.   and META-FAQ, both of which you should read.  Also take a look at the
  49.   USENET newsgroups comp.os.linux.help and comp.os.linux.announce.
  50.  
  51.   Another source of online Linux documentation is the Linux HOWTO
  52.   archive, on sunsite.unc.edu:/pub/Linux/docs/HOWTO. The file HOWTO-
  53.   INDEX in that directory explains what Linux HOWTOs are available.
  54.  
  55.   The Linux Documentation Project is writing a set of manuals and books
  56.   about Linux, all of which are freely distributable on the net.  The
  57.   directory /pub/Linux/docs/LDP on sunsite.unc.edu contains the current
  58.   set of LDP manuals.
  59.  
  60.   The book ``Linux Installation and Getting Started'' is a complete
  61.   guide to getting and installing Linux, as well as how to use the
  62.   system once you've installed it. It contains a complete tutorial to
  63.   using and running the system, and much more information than is
  64.   contained here. This HOWTO is simply a condensation of some of the
  65.   most important information in that book. You can get ``Linux
  66.   Installation and Getting Started'' from sunsite.unc.edu in
  67.   /pub/Linux/docs/LDP/install-guide.  The README file there describes
  68.   how you can order a printed copy of the book (about 180 pages).
  69.  
  70.  
  71.  
  72.   1.2.  New versions of this document
  73.  
  74.   New versions of the Linux Installation HOWTO will be periodically
  75.   posted to comp.os.linux.announce, comp.os.linux, and news.answers.
  76.   They will also be uploaded to various Linux FTP sites, including
  77.   sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  78.  
  79.  
  80.  
  81.   1.3.  Feedback
  82.  
  83.   If you have questions or comments about this document, please feel
  84.   free to mail Matt Welsh, at mdw@sunsite.unc.edu. I welcome any
  85.   suggestions, criticism, or postcards. If you find a mistake with this
  86.   document, please let me know so I can correct it in the next version.
  87.   Thanks.
  88.  
  89.  
  90.   2.  Hardware Requirements
  91.  
  92.   What kind of system is needed to run Linux? This is a good question;
  93.   the actual hardware requirements for the system change periodically.
  94.   The Linux Hardware-HOWTO gives a (more or less) complete listing of
  95.   hardware supported by Linux. The Linux INFO-SHEET provides another
  96.   list.
  97.  
  98.   At the very least, a hardware configuration that looks like the
  99.   following is required:
  100.  
  101.   Any ISA, EISA or VESA Local Bus 80386 or 80486 system will do.
  102.   Currently, the MicroChannel (MCA) architecture (found on IBM PS/2
  103.   machines) is not supported.  Any CPU from the 386SX to the 486DX2 will
  104.   work. You do not need a math coprocessor, although it is nice to have
  105.   one.
  106.  
  107.   You need at least 4 megabytes of memory in your machine. Technically,
  108.   Linux will run with only 2 megs, but most installations and software
  109.   require 4. The more memory you have, the happier you'll be. I suggest
  110.   8 or 16 megabytes if you're planning to use X-Windows.
  111.  
  112.   Of course, you'll need a hard drive and an AT-standard drive
  113.   controller. All MFM, RLL, and IDE drives and controllers should work.
  114.   Many SCSI drives and adaptors are supported as well; the Linux SCSI-
  115.   HOWTO contains more information on SCSI.
  116.  
  117.   Linux can actually run on a single 5.25" HD floppy, but that's only
  118.   useful for installation and maintenance.
  119.  
  120.   Free space on your hard drive is needed as well. The amount of space
  121.   needed depends on how much software you plan to install. Most
  122.   installations require somewhere in the ballpark of 40 to 80 megs.
  123.   This includes space for the software, swap space (used as virtual RAM
  124.   on your machine), and free space for users, and so on.
  125.  
  126.   It's conceivable that you could run a minimal Linux system in 10 megs
  127.   or less, and it's conceivable that you could use well over 100 megs or
  128.   more for all of your Linux software. The amount varies greatly
  129.   depending on the amount of software you install and how much space you
  130.   require. More about this later.
  131.  
  132.   Linux will co-exist with other operating systems, such as MS-DOS,
  133.   Microsoft Windows, or OS/2, on your hard drive. (In fact you can even
  134.   access MS-DOS files and run some MS-DOS programs from Linux.)  In
  135.   other words, when partitioning your drive for Linux, MS-DOS or OS/2
  136.   live on their own partitions, and Linux exists on its own. We'll go
  137.   into more detail later.
  138.  
  139.   You do NOT need to be running MS-DOS, OS/2, or any other operating
  140.   system to use Linux. Linux is a completely different, stand-alone
  141.   operating system and does not rely on other OS's for installation and
  142.   use.
  143.  
  144.   You also need a Hercules, CGA, EGA, VGA, or Super VGA video card and
  145.   monitor.  In general, if your video card and monitor work under MS-DOS
  146.   then it should work under Linux. However, if you wish to run X
  147.   Windows, there are other restrictions on the supported video hardware.
  148.   The Linux XFree86-HOWTO contains more information about running X and
  149.   its requirements.
  150.  
  151.   In all, the minimal setup for Linux is not much more than is required
  152.   for most MS-DOS or MS Windows systems sold today. If you have a 386 or
  153.   486 with at least 4 megs of RAM, then you'll be happy running Linux.
  154.   Linux does not require huge amounts of diskspace, memory, or processor
  155.   speed. I (used to) run Linux on a 386/16 MHz (the slowest machine you
  156.   can get) with 4 megs of RAM, and was quite happy. The more you want to
  157.   do, the more memory (and faster processor) you'll need. In my
  158.   experience a 486 with 16 megabytes of RAM running Linux outdoes
  159.   several models of workstation.
  160.  
  161.  
  162.  
  163.   3.  Getting Linux
  164.  
  165.   In this section we'll cover how to obtain the Linux software.
  166.  
  167.  
  168.   3.1.  Linux Distributions
  169.  
  170.   Before you can install Linux, you need to decide on one of the
  171.   ``distributions'' of Linux which are available. There is no single,
  172.   standard release of the Linux software---there are many such releases.
  173.   Each release has its own documentation and installation instructions.
  174.  
  175.   Linux distributions are available both via anonymous FTP and via mail
  176.   order on diskette, tape, and CD-ROM. The Linux Distribution HOWTO (see
  177.   sunsite.unc.edu in the file /pub/Linux/docs/HOWTO/Distribution-HOWTO)
  178.   includes a list of many Linux distributions available via FTP and mail
  179.   order.
  180.  
  181.   The release of Linux covered in this HOWTO is the Slackware
  182.   distribution, maintained by Patrick J. Volkerding
  183.   (volkerdi@mhd1.moorhead.msus.edu). It is one of the most popular
  184.   distributions available; it is very up-to-date and includes a good
  185.   amount of software including X-Windows, TeX, and others.  The
  186.   Slackware distribution consists of a number of ``disk sets'', each one
  187.   containing a particular type of software (for example, the d disk set
  188.   contains development tools such as the gcc compiler, and so forth).
  189.   You can elect to install whatever disk sets you like, and can easily
  190.   install new ones later.
  191.  
  192.   Slackware is also easy to install; it is very self-explanatory.  (So
  193.   self-explanatory, in fact, that this HOWTO may not be necessary.)
  194.  
  195.   The version of Slackware described here is 2.0.0, of 25 June 1994.
  196.   Installation of later versions of Slackware should be very similar to
  197.   the information given here.
  198.  
  199.   Information on other releases can be found in the Linux Installation
  200.   and Getting Started manual from the LDP. You can also find other
  201.   releases of Linux on various FTP sites, including
  202.   sunsite.unc.edu:/pub/Linux/distributions See the Distribution-HOWTO
  203.   (mentioned above) for details.
  204.  
  205.   The instructions here should be general enough to be applicable to
  206.   releases other than Slackware. I hate to be biased towards a single
  207.   release, but I don't have time to keep up with them all! And Slackware
  208.   appears to have what most Linux users are looking for.
  209.  
  210.  
  211.  
  212.   3.2.  Slackware Space Requirements
  213.  
  214.   Unfortunately, Slackware does not maintain a complete list of
  215.   diskspace requirements for each disk set. You need at least 7
  216.   megabytes to install just the A series of disks; a very rough estimate
  217.   of the required diskspace would be 2 or 2.5 megabytes per disk.
  218.  
  219.   The following disk sets are available:
  220.  
  221.      A  The base system. Enough to get up and running and have elvis and
  222.         comm programs available. Based around the 1.0.9 Linux kernel,
  223.         and the new filesystem standard (FSSTND).
  224.  
  225.         These disks are known to fit on 1.2M disks, although the rest of
  226.         Slackware won't. If you have only a 1.2M floppy, you can still
  227.         install the base system, download other disks you want and
  228.         install them from your hard drive.
  229.  
  230.  
  231.      AP Various applications and add ons, such as the manual pages,
  232.         groff, ispell (GNU and international versions), term, joe, jove,
  233.         ghostscript, sc, bc, and the quota patches.
  234.  
  235.  
  236.      D  Program development. GCC/G++/Objective C 2.5.8, make (GNU and
  237.         BSD), byacc and GNU bison, flex, the 4.5.26 C libraries, gdb,
  238.         kernel source for 1.0.9, SVGAlib, ncurses, clisp, f2c, p2c, m4,
  239.         perl, rcs.
  240.  
  241.  
  242.      E  GNU Emacs 19.25.
  243.  
  244.  
  245.      F  A collection of FAQs and other documentation.
  246.  
  247.  
  248.      I  Info pages for GNU software. Documentation for various programs
  249.         readable by info or Emacs.
  250.  
  251.  
  252.      N  Networking. TCP/IP, UUCP, mailx, dip, deliver, elm, pine, smail,
  253.         cnews, nn, tin, trn.
  254.  
  255.  
  256.      OOP
  257.         Object Oriented Programming. GNU Smalltalk 1.1.1, and the
  258.         Smalltalk Interface to X (STIX).
  259.  
  260.  
  261.      Q  Alpha kernel source and images (currently contains Linux
  262.         1.1.18).
  263.  
  264.  
  265.      TCL
  266.         Tcl, Tk, TclX, blt, itcl.
  267.  
  268.  
  269.      Y  Games. The BSD games collection, and Tetris for terminals.
  270.  
  271.  
  272.      X  The base XFree86 2.1.1 system, with libXpm, fvwm 1.20, and xlock
  273.         added.
  274.  
  275.  
  276.      XAP
  277.         X applications: X11 ghostscript, libgr13, seyon, workman,
  278.         xfilemanager, xv 3.01, GNU chess and xboard, xfm 1.2, ghostview,
  279.         and various X games.
  280.  
  281.  
  282.  
  283.      XD X11 program development. X11 libraries, server linkkit, PEX
  284.         support.
  285.  
  286.  
  287.      XV Xview 3.2 release 5. XView libraries, and the Open Look virtual
  288.         and non-virtual window managers.
  289.  
  290.  
  291.      IV Interviews libraries, include files, and the doc and idraw apps.
  292.         These run unreasonably slow on my machine, but they might still
  293.         be worth looking at.
  294.  
  295.  
  296.      OI ParcPlace's Object Builder 2.0 and Object Interface Library 4.0,
  297.         generously made available for Linux developers according to the
  298.         terms in the "copying" notice found in these directories. Note
  299.         that these only work with libc-4.4.4, but a new version may be
  300.         released once gcc 2.5.9 is available.
  301.  
  302.  
  303.      T  The TeX and LaTeX2e text formatting systems.
  304.  
  305.  
  306.   You must get the ``a'' disk set; the rest are optional.  I suggest at
  307.   least installing the a, ap, and d sets, as well as the x set if you
  308.   plan to run X Windows.
  309.  
  310.  
  311.   3.3.  Getting Slackware via Mail Order
  312.  
  313.   Slackware is available for free from the Internet, as well as via mail
  314.   order (if you don't have Internet access, or don't want to take the
  315.   time to download it yourself). The next section describes how to
  316.   download Slackware from the Internet.
  317.  
  318.   The various mail order distributors for Slackware (and other Linux
  319.   distributions) are listed in the Linux Distribution HOWTO, from
  320.   sunsite.unc.edu in the directory /pub/Linux/docs/HOWTO.
  321.  
  322.  
  323.   3.4.  Getting Slackware from the Internet
  324.  
  325.   The Slackware release of Linux may be found on any number of FTP sites
  326.   worldwide. The Linux META-FAQ lists several of the Linux FTP sites; we
  327.   suggest that you try to find the software on the FTP site nearest you,
  328.   to reduce net traffic. However, two of the major Linux FTP sites are
  329.   sunsite.unc.edu and tsx-11.mit.edu.
  330.  
  331.   The Slackware release may be found on the following FTP sites:
  332.  
  333.   o  sunsite.unc.edu:/pub/Linux/distributions/slackware
  334.  
  335.   o  tsx-11.mit.edu:/pub/linux/packages/slackware
  336.  
  337.   o  ftp.cdrom.com:/pub/linux/slackware
  338.  
  339.      ftp.cdrom.com is Slackware's home site.
  340.  
  341.  
  342.   3.4.1.  Downloading the files
  343.  
  344.   You need to download the following files from the FTP sites listed
  345.   above. Make sure that you use binary mode when FTPing them!
  346.  
  347.  
  348.  
  349.   o  The various README files, as well as SLACKWARE_FAQ.  Be sure to
  350.      read these files before attempting to install the software, to get
  351.      any updates or changes to this document.
  352.  
  353.   o  A bootdisk image. This is a file that you will write to a floppy to
  354.      create the Slackware boot disk. If you have a 1.44 megabyte boot
  355.      floppy (3.5"), look in the directory bootdsks.144.  If you have a
  356.      1.2 megabyte boot floppy (5.25"), look in the directory
  357.      bootdsks.12.  The README files in these directories describes what
  358.      the files are.
  359.  
  360.      You need one of the following files:
  361.  
  362.   o  bare.gz. This is a boot floppy that has only IDE hard drive
  363.      drivers. (No SCSI, CD-ROM, or networking support.)  Use this if you
  364.      only have an IDE hard drive controller and aren't going to be
  365.      installing over the network or from CD-ROM.
  366.  
  367.   o  xt.gz. This is a boot floppy with IDE and XT hard drive support.
  368.  
  369.   o  cd.gz. Contains IDE hard drive and non-SCSI CD-ROM drivers.  Get
  370.      this if you're going to be installing from a (non-SCSI) CD-ROM
  371.      (only relevant if you bought a Slackware CD-ROM of some kind).
  372.  
  373.   o  cdscsi.gz. Contains IDE and SCSI hard drive support, and non-SCSI
  374.      CD-ROM drivers.
  375.  
  376.  
  377.   o  scsi.gz. Contains IDE and SCSI hard drive support, and SCSI CD-ROM
  378.      drivers.
  379.  
  380.   o  net.gz. Contains IDE hard drive and TCP/IP networking support. Get
  381.      this if you are going to install over the network using NFS.
  382.  
  383.   o  scsinet.gz. Contains IDE and SCSI hard drive support, SCSI CD-ROM
  384.      drivers, and TCP/IP networking support.  You might want to try this
  385.      one first; use bare.gz or one of the other boot floppies if this
  386.      doesn't work for you.
  387.  
  388.      You need only one of the above bootdisk images, depending on the
  389.      type hardware that you have in your system.
  390.  
  391.      The issue here is that some hardware drivers conflict with each
  392.      other in strange ways, and instead of attempting to debug hardware
  393.      problems on your system it's easier to use a boot floppy image with
  394.      only certain drivers enabled. Most users should try scsi.gz or
  395.      bare.gz.
  396.  
  397.   o  A rootdisk image. This is a file that you will write to a floppy to
  398.      create the Slackware installation disk. As with the bootdisk image,
  399.      look in rootdsks.144 or rootdsks.12 depending on the type of boot
  400.      floppy drive that you have.
  401.  
  402.      You need one of the following files:
  403.  
  404.   o  color144.gz. The menu-based color installation disk for 1.44 meg
  405.      drives. Most users should use this rootdisk.
  406.  
  407.   o  umsds144.gz. A version of the color144 disk for installing with the
  408.      UMSDOS filesystem, which allows you to install Linux onto a
  409.      directory of an MS-DOS filesystem. This installation method is not
  410.      discussed in detail here, but it will prevent you from having to
  411.      repartition your drive. More on this later.
  412.  
  413.   o  tty144.gz. The terminal-based installation disk for 1.44 meg
  414.      drives. You should use color144.gz, but a few people have reported
  415.      problems with it on their system. If color144.gz doesn't work for
  416.      you, try tty144.gz instead.  It is a bit dated and the installation
  417.      procedure isn't identical, but it should work if color144.gz
  418.      doesn't.
  419.  
  420.   o  colrlite.gz. The menu-based color installation disk for 1.2 meg
  421.      drives. Some things have been trimmed off of this disk to make it
  422.      fit on a 1.2 meg floppy, but it should work if you only have a 1.2
  423.      meg drive.
  424.  
  425.  
  426.   o  umsds12.gz. A version of the colrlite disk for installing with the
  427.      UMSDOS filesystem. See the description of umsds144.gz, above.
  428.  
  429.   o  tty12.gz. The terminal-based installation disk for 1.2 meg drives.
  430.      Use this rootdisk if you have a 1.2 meg boot floppy and colrlite.gz
  431.      doesn't work for you.
  432.  
  433.      Again, you need only one of the above rootdisk images, depending on
  434.      the type of boot floppy drive that you have.
  435.  
  436.   o  GZIP.EXE. This is an MS-DOS executable of the gzip compression
  437.      program used to compress the boot and rootdisk files (the .gz
  438.      extension on the filenames indicates this). This can be found in
  439.      the install directory.
  440.  
  441.   o  RAWRITE.EXE. This is an MS-DOS program that will write the contents
  442.      of a file (such as the boot and rootdisk images) directly to a
  443.      floppy, without regard to format. You will use RAWRITE.EXE to
  444.      create the boot and root floppies.  This can be found in the
  445.      install directory as well.
  446.  
  447.      You only need RAWRITE.EXE and GZIP.EXE if you plan to create the
  448.      boot and root floppies from an MS-DOS system. If you have access to
  449.      a UNIX workstation with a floppy drive instead, you can create the
  450.      floppies from there, using the dd command.  See the man page for dd
  451.      and ask your local UNIX gurus for assistance.
  452.  
  453.   o  The files in the directories a1, a2, and a3.  These files make up
  454.      the ``a'' disk set of the Slackware distribution. They are
  455.      required. Later, you will copy these files to MS-DOS floppies for
  456.      installation (or, you can install from your hard drive). Therefore,
  457.      when you download these files, keep them in separate directories;
  458.      don't mix the a1 files with the a2 files, and so on.
  459.  
  460.      Be sure that you get the files without periods in the filenames as
  461.      well. That is, within FTP, use the command ``mget *'' instead of
  462.      ``mget *.*''.
  463.  
  464.   o  The files in the directories ap1, ap2, etc., depending on what disk
  465.      sets you are installing. For example, if you are installing the
  466.      ``x'' disk series, get the files in the directories x1 through x5.
  467.      As with the ``a'' disk set, above, be sure to keep the files in
  468.      separate directories when you download them.
  469.  
  470.  
  471.   3.4.2.  Installation methods
  472.  
  473.   Slackware provides several different means of installing the software.
  474.   The most popular is installing from an MS-DOS partition on your hard
  475.   drive; the other is to install from a set of MS-DOS floppies created
  476.   from the disk sets that you downloaded.
  477.  
  478.   You can also install Slackware from an NFS-mounted filesystem over a
  479.   TCP/IP network. This is somewhat involved, however, and a discussion
  480.   of how to do this is out of the range of this document. If you need
  481.   help, ask your local UNIX gurus how to set up your system to mount an
  482.   NFS filesystem which you can install Slackware from. (For this, you'll
  483.   need another system on the network which has Slackware available on an
  484.   exported filesystem.)
  485.  
  486.   First we'll describe how to create the boot and root floppies, and
  487.   then we'll describe how to set things up for either a hard drive or
  488.   floppy installation.
  489.  
  490.  
  491.   3.4.2.1.  Creating the boot and root floppies
  492.  
  493.   You must create floppies from the bootdisk and rootdisk images that
  494.   you downloaded, no matter what type of installation you will be doing.
  495.   This is where the MS-DOS programs GZIP.EXE and RAWRITE.EXE come into
  496.   play.
  497.  
  498.   First you must uncompress the bootdisk and rootdisk images using
  499.   GZIP.EXE (on an MS-DOS system, of course). For example, if you're
  500.   using the bare.gz bootdisk image, issue the MS-DOS command:
  501.  
  502.        C:\> GZIP -D BARE.GZ
  503.  
  504.  
  505.   which will uncompress bare.gz and leave you with the file bare. You
  506.   must similarly uncompress the rootdisk image. For example, if you are
  507.   using the rootdisk color144.gz, issue the command:
  508.  
  509.        C:\> GZIP -D COLOR144.GZ
  510.  
  511.  
  512.   which will uncompress the file and leave you with color144.
  513.  
  514.   Next, you must have two high-density MS-DOS formatted floppies.  (They
  515.   must be of the same type; that is, if your boot floppy drive is a 3.5"
  516.   drive, both floppies must be high-density 3.5" disks.) You will use
  517.   RAWRITE.EXE to write the boot and rootdisk images to the floppies.
  518.  
  519.   For example, if you're using the bare.gz bootdisk, use the command:
  520.  
  521.        C:\> RAWRITE
  522.  
  523.  
  524.   Answer the prompts for the name of the file to write (such as BARE-
  525.   BOOT) and the floppy to write it to (such as A:). RAWRITE will copy
  526.   the file, block-by-block, directly to the floppy. Also use RAWRITE for
  527.   the root disk image (such as COLOR144). When you're done, you'll have
  528.   two floppies: one containing the boot disk, the other containing the
  529.   root disk. Note that these two floppies will no longer be readable by
  530.   MS-DOS (they are ``Linux format'' floppies, in some sense).
  531.  
  532.   Be sure that you're using brand-new, error-free floppies. The floppies
  533.   must have no bad blocks on them.
  534.  
  535.   Note that you do not need to be running MS-DOS in order to install
  536.   Slackware. However, running MS-DOS makes it easier to create the boot
  537.   and root floppies, and it makes it easier to install the software (as
  538.   you can install directly from an MS-DOS partition on your system). If
  539.   you are not running MS-DOS on your system, you can use someone else's
  540.   MS-DOS system just to create the floppies, and install from there.
  541.  
  542.   It is not necessary to use GZIP.EXE and RAWRITE.EXE under MS-DOS to
  543.   create the boot and root floppies, either. You can use the gzip and dd
  544.   commands on a UNIX system to do the same job.  (For this, you will
  545.   need a UNIX workstation with a floppy drive, of course.) For example,
  546.   on a Sun workstation with the floppy drive on device /dev/rfd0, you
  547.   can use the commands:
  548.  
  549.  
  550.        $ gunzip bare.gz
  551.        $ dd if=bare of=/dev/rfd0 obs=18k
  552.  
  553.  
  554.  
  555.  
  556.   You must provide the appropriate block size argument (the obs argu-
  557.   ment) on some workstations (e.g., Suns) or this will fail. If you have
  558.   problems the man page for dd will be instructive.
  559.  
  560.  
  561.   3.4.2.2.  Preparing for installation from hard drive
  562.  
  563.   If you're planning on installing the Slackware software directly from
  564.   the hard drive (which is much faster and more reliable than a floppy
  565.   installation), you will need an MS-DOS partition on the system that
  566.   you're installing Slackware to. (That is, you must already be running
  567.   MS-DOS on the system.)
  568.  
  569.   Note: If you plan to install Slackware from an MS-DOS partition, that
  570.   partition must NOT be compressed with DoubleSpace, Stacker, or any
  571.   other MS-DOS drive compression utility. Linux cannot currently read
  572.   DoubleSpace/Stacker MS-DOS partitions directly. (You can access them
  573.   via the MS-DOS Emulator, but that is not an option when installing the
  574.   Linux software.)
  575.  
  576.   To prepare for hard drive installation, simply create a directory on
  577.   the hard drive to store the Slackware files. For example,
  578.  
  579.        C:\> MKDIR SLACKWAR
  580.  
  581.  
  582.   will create the directory C:\SLACKWAR to hold the Slackware files.
  583.   Under this directory, you should create the subdirectories A1, A2, and
  584.   so on, for each disk set that you downloaded. All of the files from
  585.   the A1 disk should go into the directory SLACKWAR\A1, and so forth.
  586.  
  587.   Now you're ready to go on and install the software; skip to the
  588.   section ``Installing the Software''.
  589.  
  590.  
  591.   3.4.2.3.  Preparing for floppy installation
  592.  
  593.   If you wish to install Slackware from floppies instead of the hard
  594.   drive, you'll need to have one blank, MS-DOS formatted floppy for each
  595.   Slackware disk that you downloaded. These disks must be high-density
  596.   format.
  597.  
  598.   The A disk set (disks A1 through A3) may be either 3.5" or 5.25"
  599.   floppies. However, the rest of the disk sets must be 3.5" disks.
  600.   Therefore, if you only have a 5.25" floppy drive, you'll need to
  601.   borrow a 3.5" drive from someone in order to install disk sets other
  602.   than A. (Or, you can install from the hard drive, as explained in the
  603.   previous section.)
  604.  
  605.   To make the disks, simply copy the files from each Slackware directory
  606.   onto an MS-DOS formatted floppy, using the MS-DOS COPY command. As so:
  607.  
  608.        C:\> COPY A1\*.* A:
  609.  
  610.  
  611.   will copy the contents of the A1 disk to the floppy in drive A:.  You
  612.   should repeat this for each disk that you downloaded.
  613.   You do not need to modify or uncompress the files on the disks in any
  614.   way; you merely need to copy them to MS-DOS floppies. The Slackware
  615.   installation procedure takes care of uncompressing the files for you.
  616.  
  617.  
  618.   4.  Installing the Software
  619.  
  620.   In this section we'll describe how to prepare your system for
  621.   installing Slackware, and finally how to go about installing it.
  622.  
  623.  
  624.   4.1.  Repartitioning
  625.  
  626.   On most systems, the hard drive is already dedicated to partitions for
  627.   MS-DOS, OS/2, and so on.  You need to resize these partitions in order
  628.   to make space for Linux.
  629.  
  630.   NOTE: If you use one of the umsds root diskettes, you can install
  631.   Slackware TO a directory on your MS-DOS partition. (This is different
  632.   than installing FROM an MS-DOS partition.) Instead, you use the
  633.   ``UMSDOS filesystem'', which allows you to treat a directory of your
  634.   MS-DOS partition as a Linux filesystem. In this way, you don't have to
  635.   repartition your drive.
  636.  
  637.   I only suggest using this method if your drive has four partitions and
  638.   repartitioning would be more trouble than it's worth. Or, if you want
  639.   to try Slackware out before repartitioning, this is a good way to do
  640.   so. But in most cases you should repartition, as described here. If
  641.   you do plan to use UMSDOS, you are on your own---it is not documented
  642.   in detail here. From now on, we assume that you are NOT using UMSDOS,
  643.   and that you will be repartitioning.
  644.  
  645.   A partition is just a section of the hard drive set aside for a
  646.   particular operating system to use. If you only have MS-DOS installed,
  647.   your hard drive probably has just one partition, entirely for MS-DOS.
  648.   To use Linux, however, you'll need to repartition the drive, so that
  649.   you have one partition for MS-DOS, and one (or more) for Linux.
  650.  
  651.   Partitions come in three flavors: primary, extended, and logical.
  652.   Briefly, primary partitions are one of the four main partitions on
  653.   your drive. However, if you wish to have more than four partitions per
  654.   drive, you need to create an extended partition, which can contain
  655.   many logical partitions.  You don't store data directly on an extended
  656.   partition---it is used only as a container for logical partitions.
  657.   Data is stored only on either primary or logical partitions.
  658.  
  659.   To put this another way, most people use only primary partitions.
  660.   However, if you need more than four partitions on a drive, you create
  661.   an extended partition. Logical partitions are then created on top of
  662.   the extended partition, and there you have it---more than four
  663.   partitions per drive.
  664.  
  665.   Note that you can easily install Linux on the second drive on your
  666.   system (known as D: to MS-DOS). You simply specify the appropriate
  667.   device name when creating Linux partitions. This is described in
  668.   detail below.
  669.  
  670.   Back to repartitioning your drive: The problem with resizing
  671.   partitions is that there is no way to do it (easily) without deleting
  672.   the data on those partitions.  Therefore, you will need to make a full
  673.   backup of your system before repartitioning. In order to resize a
  674.   partition, we simply delete the partition(s), and re-create them with
  675.   smaller sizes.
  676.  
  677.   NOTE: There is a non-destructive disk repartitioner available for MS-
  678.   DOS, called FIPS. Look on sunsite.unc.edu in the directory
  679.   /pub/Linux/system/Install. With FIPS, a disk optimizer (such as Norton
  680.   Speed Disk), and a little bit of luck, you should be able to resize
  681.   MS-DOS partitions without destroying the data on them.  It's still
  682.   suggested that you make a full backup before attempting this.
  683.  
  684.   If you're not using FIPS, however, the classic way to modify
  685.   partitions is with the program FDISK. For example, let's say that you
  686.   have an 80 meg hard drive, dedicated to MS-DOS. You'd like to split it
  687.   in half---40 megs for MS-DOS and 40 megs for Linux. In order to do
  688.   this, you run FDISK under MS-DOS, delete the 80 meg MS-DOS partition,
  689.   and re-create a 40 meg MS-DOS partition in its place. You can then
  690.   format the new partition and reinstall your MS-DOS software from
  691.   backups. 40 megabytes of the drive is left empty. Later, you create
  692.   Linux partitions on the unused portion of the drive.
  693.  
  694.   In short, you should do the following to resize MS-DOS partitions with
  695.   FDISK:
  696.  
  697.   1. Make a full backup of your system.
  698.  
  699.   2. Create an MS-DOS bootable floppy, using a command such as
  700.  
  701.        FORMAT /S A:
  702.  
  703.  
  704.   3. Copy the files FDISK.EXE and FORMAT.COM to this floppy, as well as
  705.      any other utilities that you need. (For example, utilities to
  706.      recover your system from backup.)
  707.  
  708.   4. Boot the MS-DOS system floppy.
  709.  
  710.   5. Run FDISK, possibly specifying the drive to modify (such as C: or
  711.      D:).
  712.  
  713.   6. Use the FDISK menu options to delete the partitions which you wish
  714.      to resize. This will destroy all data on the affected partitions.
  715.  
  716.   7. Use the FDISK menu options to re-create those partitions, with
  717.      smaller sizes.
  718.  
  719.   8. Exit FDISK and re-format the new partitions with the FORMAT
  720.      command.
  721.  
  722.   9. Restore the original files from backup.
  723.  
  724.   Note that MS-DOS FDISK will give you an option to create a ``logical
  725.   DOS drive''. A logical DOS drive is just a logical partition on your
  726.   hard drive. You can install Linux on a logical partition, but you
  727.   don't want to create that logical partition with MS-DOS fdisk. So, if
  728.   you're currently using a logical DOS drive, and want to install Linux
  729.   in its place, you should delete the logical drive with MS-DOS FDISK,
  730.   and (later) create a logical partition for Linux in its place.
  731.  
  732.   The mechanism used to repartition for OS/2 and other operating systems
  733.   is similar. See the documentation for those operating systems for
  734.   details.
  735.  
  736.  
  737.  
  738.   4.2.  Creating partitions for Linux
  739.  
  740.   After repartitioning your drive, you need to create partitions for
  741.   Linux. Before describing how to do that, we'll talk about partitions
  742.   and filesystems under Linux.
  743.  
  744.  
  745.   4.2.1.  Filesystems and swap space
  746.  
  747.   Linux requires at least one partition, for the root filesystem, which
  748.   will hold the Linux software itself.
  749.  
  750.   You can think of a filesystem as a partition formatted for Linux.
  751.   Filesystems are used to hold files. Every system must have a root
  752.   filesystem, at least. However, many users prefer to use multiple
  753.   filesystems---one for each major part of the directory tree. For
  754.   example, you may wish to create a separate filesystem to hold all
  755.   files under the /usr directory.  (Note that on UNIX systems, forward
  756.   slashes are used to delimit directories, not backslashes as with MS-
  757.   DOS.) In this case you have both a root filesystem, and a /usr
  758.   filesystem.
  759.  
  760.   Each filesystem requires its own partition. Therefore, if you're using
  761.   both root and /usr filesystems, you'll need to create two Linux
  762.   partitions.
  763.  
  764.   In addition, most users create a swap partition, which is used for
  765.   virtual RAM. If you have, say, 4 megabytes of memory on your machine,
  766.   and a 10-megabyte swap partition, as far as Linux is concerned you
  767.   have 14 megabytes of virtual memory.
  768.  
  769.   When using swap space, Linux moves unused pages of memory out to disk,
  770.   allowing you to run more applications at once on your system.
  771.   However, because swapping is often slow, it's no replacement for real
  772.   physical RAM. But applications that require a great deal of memory
  773.   (such as the X Window System) often rely on swap space if you don't
  774.   have enough physical RAM.
  775.  
  776.   Nearly all Linux users employ a swap partition.  If you have 4
  777.   megabytes of RAM or less, a swap partition is required to install the
  778.   software. It is strongly recommended that you have a swap partition
  779.   anyway, unless you have a great amount of physical RAM.
  780.  
  781.   The size of your swap partition depends on how much virtual memory you
  782.   need. It's often suggested that you have at least 16 megabytes of
  783.   virtual memory total. Therefore, if you have 8 megs of physical RAM,
  784.   you might want to create an 8-megabyte swap partition.  Note that swap
  785.   partitions can be no larger than 16 megabytes in size. Therefore, if
  786.   you need more than 16 megs of swap, you must create multiple swap
  787.   partitions. You may have up to 8 swap partitions in all.
  788.  
  789.  
  790.   4.2.2.  Booting the installation disk
  791.  
  792.   The first step is to boot the Slackware bootdisk.  After the system
  793.   boots, you will see the message:
  794.  
  795.  
  796.        Please remove the boot kernel disk from your floppy drive,
  797.        insert a disk to be loaded into the ramdisk, and press
  798.        [enter] to continue.
  799.  
  800.  
  801.  
  802.  
  803.   At this point you should remove the bootdisk from the drive and insert
  804.   the rootdisk. Then press enter to go on.
  805.  
  806.   The rootdisk will be loaded into memory, and you should be presented
  807.   with a login prompt. Login as ``root''.
  808.  
  809.  
  810.  
  811.   slackware login: root
  812.   #
  813.  
  814.  
  815.  
  816.  
  817.   Note to IBM PS/1, ValuePoint, and ThinkPad Users: If you use an IBM
  818.   PS/1, ValuePoint, or ThinkPad machine, the system will not recognize
  819.   your hard drive when you boot the Slackware bootdisk. This is because
  820.   these machines do not store drive geometry information in the CMOS (as
  821.   they should) and you have to specify the geometry by hand when
  822.   booting. (Later you can get around this by installing the LILO
  823.   software, which allows you to boot Linux from the hard drive.)
  824.  
  825.   You must use a bootdisk other than ``bare'' for this to work.  I
  826.   suggest using scsi.gz. While booting the bootdisk, hold down the left
  827.   shift key. You will be presented with a boot menu which will describe
  828.   how to specify your hard drive geometry (that is, the number of
  829.   cylinders, heads, and sectors per track) for your drive using the hd
  830.   boot option. You can get information on your drive geometry from your
  831.   hard drive manual or by running MS-DOS FDISK.
  832.  
  833.  
  834.   4.2.3.  Using fdisk
  835.  
  836.   To create partitions, you'll use the Linux fdisk program.  After
  837.   logging in as root, run the command
  838.  
  839.        fdisk <drive>
  840.  
  841.  
  842.   where <drive> is the name of the drive that you wish to create Linux
  843.   partitions on. Hard drive device names are:
  844.  
  845.   o  /dev/hda First IDE drive
  846.  
  847.   o  /dev/hdb Second IDE drive
  848.  
  849.   o  /dev/sda First SCSI drive
  850.  
  851.   o  /dev/sdb Second SCSI drive
  852.  
  853.      For example, to create Linux partitions on the first SCSI drive in
  854.      your system, use the command
  855.  
  856.        fdisk /dev/sda
  857.  
  858.  
  859.   If you use fdisk without an argument, it will assume /dev/hda.
  860.  
  861.   To create Linux partitions on the second drive on your system, simply
  862.   specify either /dev/hdb (for IDE drives) or /dev/sdb (for SCSI drives)
  863.   when running fdisk.
  864.  
  865.   Your Linux partitions don't all have to be on the same drive.  You
  866.   might want to create your root filesystem partition on /dev/hda and
  867.   your swap partition on /dev/hdb, for example. In order to do so just
  868.   run fdisk once for each drive.
  869.  
  870.   Use of fdisk is simple. The command ``p'' displays your current
  871.   partition table. ``n'' creates a new partition, and ``d'' deletes a
  872.   partition.
  873.  
  874.   To Linux, partitions are given a name based on the drive which they
  875.   belong to. For example, the first partition on the drive /dev/hda is
  876.   /dev/hda1, the second is /dev/hda2, and so on. If you have any logical
  877.   partitions, they are numbered starting with /dev/hda5, /dev/hda6 and
  878.   so on up.
  879.  
  880.   NOTE: You should not create or delete partitions for operating systems
  881.   other than Linux with Linux fdisk. That is, don't create or delete MS-
  882.   DOS partitions with this version of fdisk; use MS-DOS's version of
  883.   FDISK instead. If you try to create MS-DOS partitions with Linux
  884.   fdisk, chances are MS-DOS will not recognize the partition and not
  885.   boot correctly.
  886.  
  887.   Here's an example of using fdisk. Here, we have a single MS-DOS
  888.   partition using 61693 blocks on the drive, and the rest of the drive
  889.   is free for Linux. (Under Linux, one block is 1024 bytes. Therefore,
  890.   61693 blocks is about 61 megabytes.)  We will create two Linux
  891.   partitions: one for swap, and one for the root filesystem.
  892.  
  893.   First, we use the ``p'' command to display the current partition
  894.   table.  As you can see, /dev/hda1 (the first partition on /dev/hda) is
  895.   a DOS partition of 61693 blocks.
  896.  
  897.   ______________________________________________________________________
  898.   Command (m for help):   p
  899.   Disk /dev/hda: 16 heads, 38 sectors, 683 cylinders
  900.   Units = cylinders of 608 * 512 bytes
  901.  
  902.        Device Boot  Begin   Start     End  Blocks   Id  System
  903.     /dev/hda1   *       1       1     203   61693    6  DOS 16-bit >=32M
  904.  
  905.   Command (m for help):
  906.   ______________________________________________________________________
  907.  
  908.  
  909.  
  910.   Next, we use the ``n'' command to create a new partition. The Linux
  911.   root partition will be 80 megs in size.
  912.  
  913.   ______________________________________________________________________
  914.   Command (m for help):  n
  915.   Command action
  916.       e   extended
  917.       p   primary partition (1-4)
  918.   p
  919.   ______________________________________________________________________
  920.  
  921.  
  922.   Here we're being asked if we want to create an extended or primary
  923.   partition. In most cases you want to use primary partitions, unless
  924.   you need more than four partitions on a drive. See the section
  925.   ``Repartitioning'', above, for more information.
  926.  
  927.   ______________________________________________________________________
  928.   Partition number (1-4): 2
  929.   First cylinder (204-683):  204
  930.   Last cylinder or +size or +sizeM or +sizeK (204-683): +80M
  931.   ______________________________________________________________________
  932.  
  933.  
  934.  
  935.   The first cylinder should be the cylinder AFTER where the last
  936.   partition left off. In this case, /dev/hda1 ended on cylinder 203, so
  937.   we start the new partition at cylinder 204.
  938.  
  939.   As you can see, if we use the notation ``+80M'', it specifies a
  940.   partition of 80 megs in size. Likewise, the notation ``+80K'' would
  941.   specify an 80 kilobyte partition, and ``+80'' would specify just an 80
  942.   byte partition.
  943.   ______________________________________________________________________
  944.   Warning: Linux cannot currently use 33090 sectors of this partition
  945.   ______________________________________________________________________
  946.  
  947.  
  948.   If you see this warning, you can ignore it. It is left over from an
  949.   old restriction that Linux filesystems could only be 64 megs in size.
  950.   However, with newer filesystem types, that is no longer the case...
  951.   partitions can now be up to 4 terabytes in size.
  952.  
  953.   Next, we create our 10 megabyte swap partition, /dev/hda3.
  954.  
  955.   ______________________________________________________________________
  956.   Command (m for help): n
  957.   Command action
  958.       e   extended
  959.       p   primary partition (1-4)
  960.   p
  961.  
  962.   Partition number (1-4): 3
  963.   First cylinder (474-683):  474
  964.   Last cylinder or +size or +sizeM or +sizeK (474-683):  +10M
  965.   ______________________________________________________________________
  966.  
  967.  
  968.  
  969.   Again, we display the contents of the partition table. Be sure to
  970.   write down the information here, especially the size of each partition
  971.   in blocks. You need this information later.
  972.  
  973.   ______________________________________________________________________
  974.   Command (m for help): p
  975.   Disk /dev/hda: 16 heads, 38 sectors, 683 cylinders
  976.   Units = cylinders of 608 * 512 bytes
  977.  
  978.        Device Boot  Begin   Start     End  Blocks   Id  System
  979.     /dev/hda1   *       1       1     203   61693    6  DOS 16-bit >=32M
  980.     /dev/hda2         204     204     473   82080   83  Linux native
  981.     /dev/hda3         474     474     507   10336   83  Linux native
  982.   ______________________________________________________________________
  983.  
  984.  
  985.  
  986.   Note that the Linux swap partition (here, /dev/hda3) has type ``Linux
  987.   native''. We need to change the type of the swap partition to ``Linux
  988.   swap'' so that the installation program will recognize it as such. In
  989.   order to do this, use the fdisk ``t'' command:
  990.  
  991.   ______________________________________________________________________
  992.   Command (m for help): t
  993.   Partition number (1-4): 3
  994.   Hex code (type L to list codes): 82
  995.   ______________________________________________________________________
  996.  
  997.  
  998.   If you use ``L'' to list the type codes, you'll find that 82 is the
  999.   type corresponding to Linux swap.
  1000.  
  1001.   To quit fdisk and save the changes to the partition table, use the
  1002.   ``w'' command. To quit fdisk WITHOUT saving changes, use the ``q''
  1003.   command.
  1004.  
  1005.   After quitting fdisk, the system may tell you to reboot to make sure
  1006.   that the changes took effect. In general there is no reason to reboot
  1007.   after using fdisk---the version of fdisk on the Slackware distribution
  1008.   is smart enough to update the partitions without rebooting.
  1009.   4.3.  Preparing the swap space
  1010.  
  1011.   If you have 4 megabytes of RAM (or less) in your machine, you need to
  1012.   create a swap partition (using fdisk) and enable it for use before
  1013.   installing the software. Here, we describe how to format and enable
  1014.   your swap partition(s).
  1015.  
  1016.   If you have more than 4 megs of RAM, you need only create your
  1017.   partition(s)---it's not necessary to format and enable them before
  1018.   installing the software.  In this case you can skip down to the
  1019.   section ``Installing the Software''.
  1020.  
  1021.   If you get any ``out of memory'' errors during the installation
  1022.   procedure you should create a swap partition and enable it as
  1023.   described here.
  1024.  
  1025.   To prepare the swap space for use, we use the mkswap command.  It
  1026.   takes the form:
  1027.  
  1028.        mkswap -c <partition> <size>
  1029.  
  1030.  
  1031.   where <partition> is the partition name, such as /dev/hda3, and <size>
  1032.   is the size of the partition in blocks.
  1033.  
  1034.   For example, if you created the swap partition /dev/hda3 of size 10336
  1035.   blocks, use the command
  1036.  
  1037.        mkswap -c /dev/hda3 10336
  1038.  
  1039.  
  1040.   The -c option tells mkswap to check for bad blocks on the partition
  1041.   when preparing the swap space. If you see any ``read_intr'' error mes-
  1042.   sages during the mkswap operation, this means that bad blocks were
  1043.   found (and flagged). So you can ignore these errors.
  1044.  
  1045.   To enable swapping on the new device, use the command
  1046.  
  1047.        swapon <partition>
  1048.  
  1049.  
  1050.   For example, for our swap space on /dev/hda3, we use
  1051.  
  1052.        swapon /dev/hda3
  1053.  
  1054.  
  1055.   We're now swapping with about 10 megabytes more virtual memory.
  1056.  
  1057.   You should execute mkswap and swapon for each swap partition that you
  1058.   created.
  1059.  
  1060.  
  1061.   4.4.  Installing the software
  1062.  
  1063.   Installing the Slackware release is very simple; it's almost
  1064.   automatic. You use the setup command, which guides you through a
  1065.   series of menus which allow you to specify the means of installation,
  1066.   the partitions to use, and so forth.  Almost everything is automatic.
  1067.  
  1068.   Here, we're not going to document many of the specifics of using
  1069.   setup, because it changes from time to time. setup is very self-
  1070.   explanatory; it contains its own documentation. Just to give you an
  1071.   idea of what it's like, however, we'll describe what most
  1072.   installations are like using setup.
  1073.  
  1074.  
  1075.   Before you begin, be sure that you have a high-density MS-DOS
  1076.   formatted floppy on hand. You will use this floppy to create a Linux
  1077.   boot diskette.
  1078.  
  1079.   After running fdisk (and, perhaps, mkswap and swapon as described
  1080.   above), issue the command
  1081.  
  1082.        # setup
  1083.  
  1084.  
  1085.   This will present you with a colourful menu with various options such
  1086.   as ``Addswap'' (to set up your swap space), ``Source'' (to specify the
  1087.   source of the software to install, such as floppy or hard drive),
  1088.   ``Target'' (to specify where to install the software), and so on.
  1089.  
  1090.   In general, you should go through the menu commands in the following
  1091.   order:
  1092.  
  1093.   1. Addswap. If you created a swap partition (using fdisk), use the
  1094.      addswap menu option to tell the system about it.  This option will
  1095.      present you with a list of possible swap partitions; just type in
  1096.      the name of the swap partition(s) that you wish to use (such as
  1097.      /dev/hda3). The system will then ask you if you want to format the
  1098.      swap partition, which you should do unless you already ran mkswap
  1099.      and swapon on it.  That is, you should format the swap partition
  1100.      unless you already formatted and enabled it by hand as described in
  1101.      the previous section.
  1102.  
  1103.   2. Source. This menu option lets you specify the source for the
  1104.      software to install. You can select several means of installation,
  1105.      such as from floppy or from hard drive. If you are installing from
  1106.      floppies, the system will ask you which floppy drive to use. If you
  1107.      are installing from hard drive, the system will ask you what
  1108.      partition the files are stored on, and what directory they are in.
  1109.  
  1110.      For example, if you are installing from an MS-DOS partition on your
  1111.      hard drive, and the Slackware files are under the directory
  1112.      C:\SLACKWAR, you should enter the name of the MS-DOS partition
  1113.      (such as /dev/hda1) and the name of the directory (such as
  1114.      /slackwar). Note that you should use forward slashes (/), not
  1115.      backslashes (\), in the directory name.
  1116.  
  1117.      There are other means of installation, such as CD-ROM. These should
  1118.      be self-explanatory as well.
  1119.  
  1120.   3. Target. This menu item lets you specify what partition(s) to
  1121.      install the software on. The system will display a list of possible
  1122.      partitions. First you will be asked to enter the name of the root
  1123.      partition, such as /dev/hda2. You will be asked if you want to
  1124.      format the partition; unless you are installing on a partition
  1125.      previously formatted for Linux you should do so. You should use the
  1126.      Second Extended Filesystem (ext2fs) type for the partition.
  1127.  
  1128.      You will also be given a chance to use additional partitions for
  1129.      different parts of the directory tree. For example, if you created
  1130.      a separate partition for the /usr filesystem, you should enter the
  1131.      name of that partition and the directory that it corresponds to
  1132.      (/usr) when asked.
  1133.  
  1134.   4. Disksets. This option allows you to specify the disksets you wish
  1135.      to install. Use the arrow keys to scroll through the list; pressing
  1136.      the spacebar selects or deselects a set. Press return when you're
  1137.      done selecting disk sets.
  1138.  
  1139.      You may wish to only install a minimal system at this time. That's
  1140.      fine. Only the A diskset is required. After you have installed the
  1141.      software you may run setup to install other disksets.
  1142.  
  1143.   5. Install. After setting up all of the parameters above, you're ready
  1144.      to install the software. First the system will ask you what type of
  1145.      prompting to use; you should use the ``normal'' prompting method
  1146.      (unless you're an expert and have modified the installation
  1147.      tagfiles in some way).
  1148.  
  1149.      The system will simply go through each disk set and install the
  1150.      software. For each software package, a dialog box will be displayed
  1151.      describing the software. Software packages that are required will
  1152.      be installed automatically. For optional software packages you will
  1153.      be given the option of either installing or not installing the
  1154.      package. (If you don't wish to install a certain package now, you
  1155.      can always use setup on your system to install it later).
  1156.  
  1157.      While the software is installing, watch out for error messages that
  1158.      may be displayed. The most common error that you're likely to run
  1159.      into is ``device full'', which means that you have run out of space
  1160.      on your Linux partitions. Unfortunately, the Slackware installation
  1161.      procedure is not quite smart enough to detect this, and will
  1162.      attempt to continue installing the software regardless. If you get
  1163.      any kind of error messages during the installation procedure, you
  1164.      may wish to break out of the installation program (using Ctrl-C) to
  1165.      record them. The only solution for the ``device full'' problem is
  1166.      to re-create your Linux partitions with different sizes, or attempt
  1167.      to reinstall the software without several of the optional software
  1168.      packages.
  1169.  
  1170.  
  1171.  
  1172.   4.5.  After installation
  1173.  
  1174.   After installation is complete, and if all goes well, you will be
  1175.   given the option of creating a ``standard boot disk'', which you can
  1176.   use to boot your newly-installed Linux system. For this you will need
  1177.   a blank, high-density MS-DOS formatted diskette of the type that you
  1178.   boot with on your system. Simply insert the disk when prompted and a
  1179.   boot diskette will be created.
  1180.  
  1181.   You will also be given the chance to install LILO on your hard drive.
  1182.   LILO (which stands for LInux LOader) is a program that will allow you
  1183.   to boot Linux (as well as other operating systems, such as MS-DOS)
  1184.   from your hard drive. If you wish to do this, just select the
  1185.   appropriate menu option and follow the prompts.
  1186.  
  1187.   If you are using OS/2's Boot Manager, the menu will include an option
  1188.   for configuring LILO for use with the Boot Manager, so that you can
  1189.   boot Linux from it.
  1190.  
  1191.   Note that this automated LILO installation procedure is not foolproof;
  1192.   there are situations in which this can fail. Be sure that you have a
  1193.   way to boot MS-DOS, Linux, and other operating systems from floppy
  1194.   before you attempt to install LILO. If the LILO installation fails you
  1195.   will be able to boot your system from floppy and correct the problem.
  1196.  
  1197.   More information on configuring LILO is given below.
  1198.  
  1199.   The postinstallation procedure will also take you through several menu
  1200.   items allowing you to configure your system. This includes specifying
  1201.   your modem and mouse device, as well as your time zone. Just follow
  1202.   the menu options.
  1203.  
  1204.  
  1205.  
  1206.  
  1207.   4.6.  Booting your new system
  1208.  
  1209.   If everything went as planned, you should be able to boot your Linux
  1210.   boot floppy (not the Slackware installation floppy, but the floppy
  1211.   created after installing the software). Or, if you installed LILO, you
  1212.   should be able to boot from the hard drive.  After booting, login as
  1213.   root. Congratulations! You have your very own Linux system.
  1214.  
  1215.   If you are booting using LILO, try holding down shift or control
  1216.   during boot. This will present you with a boot prompt; press tab to
  1217.   see a list of options. In this way you can boot Linux, MS-DOS, or
  1218.   whatever directly from LILO.
  1219.  
  1220.   After booting your system and logging in as root, one of the first
  1221.   things you should do is create an account for yourself.  The adduser
  1222.   command may be used for this purpose. For example,
  1223.  
  1224.  
  1225.        # adduser
  1226.        Login to add (^C to quit): ebersol
  1227.        Full Name: Norbert Ebersol
  1228.        GID [100]: 100
  1229.        UID [501]: 501
  1230.        Home Directory [/home/ebersol]: /home/ebersol
  1231.        Shell [/bin/bash]: /bin/bash
  1232.        Password [ebersol]: new.password
  1233.  
  1234.        Information for new user [ebersol]:
  1235.        Home directory: [/home/ebersol]  Shell: [/bin/bash]
  1236.        Password: [new.password]  UID: [502] GID:[100]
  1237.        Is this correct? [y/n]: y
  1238.  
  1239.  
  1240.  
  1241.  
  1242.   adduser will prompt you for various parameters, such as the username,
  1243.   full name, GID (group ID), UID (user ID), and so on. For the most part
  1244.   you can use the defaults. If you're unfamiliar with creating users on
  1245.   a UNIX system, I strongly suggest getting a book on UNIX systems
  1246.   administration. It will help you greatly in setting up and using your
  1247.   new system.
  1248.  
  1249.   You can now login as the new user. You can use the keys Alt-F1 through
  1250.   Alt-F8 to switch between virtual consoles, which will allow you to
  1251.   login multiple times from the console. The passwd command can be used
  1252.   to set the passwords on your new accounts; you should set a password
  1253.   for root and any new users that you create.
  1254.  
  1255.   Also, the hostname of your machine is set at boot time in the file
  1256.   /etc/rc.d/rc.M. You should edit this file (as root) to change the
  1257.   hostname of the machine.  You should edit the lines in this file which
  1258.   run the commands hostname or hostname_notcp. (The default hostname is
  1259.   slackware.) You may also wish to edit the domainname commands in this
  1260.   file, if you are on a TCP/IP network.
  1261.  
  1262.   Obviously, there are many more things to setup and configure. A good
  1263.   book on UNIX systems administration should help. (I suggest Essential
  1264.   Systems Administration from O'Reilly and Associates.)  You will pick
  1265.   these things up as time goes by. You should read various other Linux
  1266.   HOWTOs, such as the NET-2-HOWTO and Printing-HOWTO, for information on
  1267.   other configuration tasks.
  1268.  
  1269.   After that, the system is all yours... have fun!
  1270.  
  1271.  
  1272.  
  1273.   5.  Configuring LILO
  1274.  
  1275.   LILO is a boot loader, which can be used to select either Linux, MS-
  1276.   DOS, or some other operating system at boot time. If you install LILO
  1277.   as the primary boot loader, it will handle the first-stage booting
  1278.   process for all operating systems on your drive. This works well if
  1279.   MS-DOS is the only other operating system that you have installed.
  1280.   However, you might be running OS/2, which has it's own Boot Manager.
  1281.   In this case, you want OS/2's Boot Manager to be the primary boot
  1282.   loader, and use LILO just to boot Linux (as the secondary boot
  1283.   loader).
  1284.  
  1285.   The Slackware installation procedure allows you to install and
  1286.   configure LILO. However, this method doesn't seem to be smart enough
  1287.   to handle several peculiar situations. It might be easier in some
  1288.   cases to configure LILO by hand.
  1289.  
  1290.   In order to set up LILO for your system, just edit the file
  1291.   /etc/lilo/config. Below we present an example of a LILO configuration
  1292.   file, where the Linux root partition is on /dev/hda2, and MS-DOS is
  1293.   installed on /dev/hdb1 (on the second hard drive).
  1294.  
  1295.  
  1296.        # Tell LILO to install itself as the primary boot loader on /dev/hda.
  1297.        boot = /dev/hda
  1298.        # The boot image to install; you probably shouldn't change this
  1299.        install = /etc/lilo/boot.b
  1300.        # Do some optimization. Doesn't work on all systems.
  1301.        compact
  1302.  
  1303.        # The stanza for booting Linux.
  1304.        image = /vmlinuz       # The kernel is in /vmlinuz
  1305.          label = linux        # Give it the name "linux"
  1306.          root = /dev/hda2     # Use /dev/hda2 as the root filesystem
  1307.          vga = ask            # Prompt for VGA mode
  1308.  
  1309.        # The stanza for booting MS-DOS
  1310.        other = /dev/hdb1      # This is the MS-DOS partition
  1311.          label = msdos        # Give it the name "msdos"
  1312.          table = /dev/hdb     # The partition table for the second drive
  1313.  
  1314.  
  1315.  
  1316.  
  1317.   Once you have edited the /etc/lilo/config file, run /etc/lilo/lilo as
  1318.   root. This will install LILO on your drive. Note that you must rerun
  1319.   /etc/lilo/lilo anytime that you recompile your kernel (something that
  1320.   you don't need to worry about just now, but keep it in mind).
  1321.  
  1322.   You can now reboot your system from the hard drive. By default LILO
  1323.   will boot the operating system listed first in the configuration file,
  1324.   which in this case is Linux. In order to bring up a boot menu, in
  1325.   order to select another operating system, hold down shift or ctrl
  1326.   while the system boots; you should see a prompt such as
  1327.  
  1328.        Boot:
  1329.  
  1330.  
  1331.   Here, enter either the name of the operating system to boot (given by
  1332.   the label line in the configuration file; in this case, either linux
  1333.   or msdos), or press tab to get a list.
  1334.  
  1335.   Now let's say that you want to use LILO as the secondary boot loader;
  1336.   if you want to boot Linux from OS/2's Boot Manager, for example.  In
  1337.   order to boot a Linux partition from OS/2 Boot Manager, unfortunately,
  1338.   you must create the partition using OS/2's FDISK (not Linux's), and
  1339.   format the partition as FAT or HPFS, so that OS/2 knows about it.
  1340.   (That's IBM for you.)
  1341.  
  1342.   In order to have LILO boot Linux from OS/2 BM, you only want to
  1343.   install LILO on your Linux root filesystem (in the above example,
  1344.   /dev/hda2). In this case, your LILO config file should look something
  1345.   like:
  1346.  
  1347.  
  1348.        boot = /dev/hda2
  1349.        install = /etc/lilo/boot.b
  1350.        compact
  1351.  
  1352.        image = /vmlinuz
  1353.          label = linux
  1354.          root = /dev/hda2
  1355.          vga = ask
  1356.  
  1357.  
  1358.  
  1359.  
  1360.   Note the change in the boot line. After running /etc/lilo/lilo you
  1361.   should be able to add the Linux partition to Boot Manager. This mecha-
  1362.   nism should work for boot loaders used by other operating systems as
  1363.   well.
  1364.  
  1365.  
  1366.   6.  Miscellaneous
  1367.  
  1368.   I don't like to be biased towards the Slackware release, however, in
  1369.   order to document multiple releases of Linux, this file would be much,
  1370.   much longer. It is simpler and more coherent to cover the specific
  1371.   instructions for a single release of Linux. The book Linux
  1372.   Installation and Getting Started currently includes general
  1373.   installation instructions which should be applicable to ``any''
  1374.   distribution of Linux. However, because the installation procedures
  1375.   are so varied, covering them all would be very confusing both to
  1376.   myself and to the reader.
  1377.  
  1378.   The basic concepts in this document still hold, no matter what release
  1379.   of Linux you choose. For example, all releases require you to run
  1380.   fdisk, and all of them (to my knowledge) include some kind of
  1381.   installation menu similar to the setup program.  If you choose to use
  1382.   a release of Linux other than Slackware, the READMEs and installation
  1383.   instructions that come with that release should be easy to understand
  1384.   in the context of the material presented here.
  1385.  
  1386.   If you would like a more complete discussion of Linux installation
  1387.   (instead of the "quick" examples given here), read the book Linux
  1388.   Installation and Getting Started, from sunsite.unc.edu in
  1389.   /pub/Linux/docs/LDP.  This book includes a complete discussion of how
  1390.   to obtain and install Linux, as well as a basic UNIX and systems
  1391.   administration tutorial for new users.
  1392.  
  1393.   Please mail me at mdw@sunsite.unc.edu if any part of this document is
  1394.   confusing or incorrect. I depend on feedback from readers in order to
  1395.   maintain this document! I also like to help answer questions about
  1396.   Linux installation, if you have any.
  1397.  
  1398.   I'd like to thank Patrick Volkerding for his work on the Slackware
  1399.   distribution and assistance in preparing this document.
  1400.  
  1401.   Best of luck with your new Linux system!
  1402.  
  1403.   Cheers, mdw
  1404.